//
// Some function are missing on some platform; this file expose some str functions
//

#ifndef __GLF_STR_EXPOSE_H_INCLUDED__
#define __GLF_STR_EXPOSE_H_INCLUDED__

#include <glf/core/str.h>

#ifdef __ANDROID__

#include <string.h>
#include <ctype.h>

inline int stricmp(const char* str1, const char* str2)
{
	return glf::Stricmp(str1, str2);
}

inline int strnicmp(const char* str1, const char* str2, size_t num)
{
	return glf::Strnicmp(str1, str2, num);
}

inline char* strlwr(char* str)
{
	char* p = str;
	while (*p) {
		*p = tolower(*p); 
		++p;
	}
	return str;
}

#endif // __ANDROID__

#endif
